<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .test1 {
            width: 200px;
            height: 200px;
            border: 1px solid #ccc;
        }
        
        .test1 button {
            width: 20px;
            height: 20px;
            border: 1px solid #666;
        }
        
        span {
            width: 50px;
            height: 50px;
            line-height: 50px;
        }
    </style>
</head>
<script src="JavaScript/jquery.min.js"></script>

<body>
    <div class="test1">
        <button onclick="add(),changeItem.call(this)">123</button>
        <span></span>
    </div>
    <div class="test1">
        <button onclick="changeItem()"></button>
        <span></span>
    </div>
    <div class="test1">
        <button onclick="changeItem()">123</button>
        <span></span>
    </div>
    <script>
        function add() {
            alert("你好");
        }

        function changeItem() {
            $(this).siblings("span").html("你真棒！");
        };
        // $("button").click(function() {
        //     $(this).siblings("span").html("你真棒！");
        // })
    </script>
</body>

</html>